home *** CD-ROM | disk | FTP | other *** search
/ Precos 4.97 Computer 2000 / Precos 4.97 Computer 2000.iso / pc / info / 5network / 3com / 3c503n.exe / NETWARE / 286-IPX / UPDATE.BAT < prev   
DOS Batch File  |  1993-02-05  |  3KB  |  114 lines

  1. @echo off
  2. REM %%VER NetWare 286 Drivers Installation Utility Program v3.4c
  3.  
  4.  
  5.  
  6. REM    Updates EtherLink II network adapter drivers in a NW 286 system
  7. REM    Format: From the NETWARE subdirectory
  8. REM              > 286-IPX\update [target_drive:] 
  9.  
  10.  
  11.  
  12. echo          Updating NetWare 286 driver files on %1
  13. set update=n
  14.                                           
  15. if not exist %1Shgen-1\*.* goto ST1
  16.  
  17. copy %1Shgen-1\S3C503.lan %1Shgen-1\*.old > nul
  18. copy  286-IPX\S3C503.lan %1Shgen-1 > nul
  19.  
  20. echo.
  21. echo          Updated the EtherLink II .LAN file in directory %1Shgen-1   
  22. set update=y
  23.  
  24. :ST1
  25. if not exist %1Brgen-1\*.*  goto ST2
  26.  
  27. copy %1Brgen-1\3C503A?.lan %1Brgen-1\*.old > nul
  28. copy %1Brgen-1\A3C503A?.lan %1Brgen-1\*.old > nul
  29. copy  286-IPX\3C503A?.lan %1Brgen-1 > nul
  30.  
  31. echo.
  32. echo          Updated the EtherLink II .LAN file in directory %1Brgen-1  
  33. set update=y
  34.  
  35. :ST2
  36. if not exist %1Auxgen\*.*  goto ST3
  37.  
  38. copy %1Auxgen\3C503A?.lan %1Auxgen\*.old > nul
  39. copy %1Auxgen\A3C503A?.lan %1Auxgen\*.old > nul
  40. copy  286-IPX\3C503A?.lan %1Auxgen > nul
  41.  
  42. echo.
  43. echo          Updated the EtherLink II .Lan file in directory %1Auxgen  
  44. set update=y
  45.  
  46. :ST3
  47. if not exist %1WSgen\*.*  goto ST4
  48.  
  49. copy %1WSgen\S3C503.lan %1WSgen\*.old > nul
  50. copy  286-IPX\S3C503.lan %1WSgen > nul
  51.  
  52. echo.
  53. echo          Updated the EtherLink II .LAN file in directory %1Wsgen      
  54. set update=y
  55.  
  56. :ST4
  57. if not exist %1Routegen\*.*  goto ST5
  58.  
  59. copy %1Routegen\3C503A?.lan %1Routegen\*.old > nul
  60. copy %1Routegen\A3C503A?.lan %1Routegen\*.old > nul
  61. copy  286-IPX\3C503A?.lan %1Routegen > nul
  62.  
  63. echo.
  64. echo          Updated the EtherLink II .LAN file in directory %1Routegen    
  65. set update=y
  66.  
  67. :ST5
  68. if not exist %1System-1\*.*  goto ST6
  69.  
  70. copy %1System-1\3C503A?.lan %1System-1\*.old > nul
  71. copy %1System-1\A3C503A?.lan %1System-1\*.old > nul
  72. copy  286-IPX\3C503A?.lan %1System-1 > nul
  73.  
  74. echo.
  75. echo          Updated the EtherLink II .LAN file in directory %1System-1      
  76. set update=y
  77.  
  78.  
  79. :ST6
  80. if %update% == n goto errmsg
  81. if not exist %1lan_drv_.503\*.*  goto make503
  82.  
  83. :contin
  84. copy %1lan_drv_.503\*.obj  %1lan_drv_.503\*.old > nul
  85. copy  286-IPX\*.obj  %1lan_drv_.503 > nul
  86.  
  87. echo          Updated the EtherLink II .OBJ's in directory %1LAN_DRV_.503
  88.  
  89. :DONE
  90. echo.
  91. echo          The NetWare 286 EtherLink II drivers on %1 have 
  92. echo          been updated.  The older drivers have been copied       
  93. echo          to files with the extension ".old."                               
  94.  
  95. goto end
  96.  
  97. :errmsg
  98.  
  99.  
  100. echo.
  101. echo               *** Error:  No Files Were Updated! ***            
  102. echo          Make sure that you have entered the correct drive          
  103. echo          letter and that you have access rights to the files. 
  104. echo          Strike any key to return to the NetWare Menu.
  105.  
  106. goto end
  107.  
  108. :make503
  109. md %1lan_drv_.503 > nul
  110. goto contin
  111.  
  112.  
  113. :end
  114.